package com.wqy.netty.module.fuben.response;

import com.wqy.netty.core.Serializer;

/**
 * @Auther: WangQingyang
 * @Date: 2020/3/31 15:38
 * @Description:
 */
public class FightResponse extends Serializer {
    /**
     * 获取金币
     */
    private int  gold;

    @Override
    protected void read() {
        this.gold = readInt();
    }

    @Override
    protected void write() {
        writeInt(gold);
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    @Override
    public String toString() {
        return "FightResponse{" +
                "gold=" + gold +
                '}';
    }
}
